package com.example.wechat.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_wechat_session")
public class Session {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	@TableField("user_id")
	private String userId;
	
	@TableField("target_id")
	private String targetId;
	
	@TableField("session_type")
	private Integer sessionType;
	
	@TableField("last_message_id")
	private Long lastMessageId;
	
	@TableField("last_message_content")
	private String lastMessageContent;
	
	@TableField("last_message_time")
	private LocalDateTime lastMessageTime;
	
	@TableField("unread_count")
	private Integer unreadCount;
	
	@TableField("is_pinned")
	private Boolean isPinned;
	
	@TableField("is_muted")
	private Boolean isMuted;
	
	@TableField("create_time")
	private LocalDateTime createTime;
	
	@TableField("update_time")
	private LocalDateTime updateTime;
	
	@TableField("del_flag")
	private Boolean delFlag;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public Integer getSessionType() {
		return sessionType;
	}

	public void setSessionType(Integer sessionType) {
		this.sessionType = sessionType;
	}

	public Long getLastMessageId() {
		return lastMessageId;
	}

	public void setLastMessageId(Long lastMessageId) {
		this.lastMessageId = lastMessageId;
	}

	public String getLastMessageContent() {
		return lastMessageContent;
	}

	public void setLastMessageContent(String lastMessageContent) {
		this.lastMessageContent = lastMessageContent;
	}

	public LocalDateTime getLastMessageTime() {
		return lastMessageTime;
	}

	public void setLastMessageTime(LocalDateTime lastMessageTime) {
		this.lastMessageTime = lastMessageTime;
	}

	public Integer getUnreadCount() {
		return unreadCount;
	}

	public void setUnreadCount(Integer unreadCount) {
		this.unreadCount = unreadCount;
	}

	public Boolean getIsPinned() {
		return isPinned;
	}

	public void setIsPinned(Boolean isPinned) {
		this.isPinned = isPinned;
	}

	public Boolean getIsMuted() {
		return isMuted;
	}

	public void setIsMuted(Boolean isMuted) {
		this.isMuted = isMuted;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}
}